function TableProducesMailing(container, item, options) {
  this._container = container;
  this._item = item;
  this._options = options;
  
  this._createElements();
};

TableProducesMailing.prototype._createElements = function() {
  var gui, table, _self = this, unique = MiscUtils.unique();
  
  DOMUtils.removeChildElements(this._container);
  
  table = document.createElement('table');
  table.style.width = '740px';
  table.style.height = '24px';
  table.cellPadding = 0;
  table.cellSpacing = 0;
  table.style.borderTop = 'solid 1px #694247';
  table.style.borderLeft = 'solid 1px #694247';
  table.id = unique + '_produce_table';
  this._container.appendChild(table);
  
  tr = table.insertRow(-1);
  tr.style.backgroundColor = '#7a5052';
  td = tr.insertCell(-1);
  td.style.width = '140px';
  td.style.height = '24px';
  td.style.fontSize = '9pt';
  td.style.fontWeight = 'bold';
  td.style.color = 'white';
  td.style.paddingLeft = '10px';
  td.style.textAlign = 'left';
  td.style.verticalAlign = 'middle';
  td.style.borderRight = 'solid 1px #fff';
  td.appendChild(document.createTextNode('Customers'));
 
  
  td = tr.insertCell(-1);
  td.style.width = '170px';
  td.style.height = '24px';
  td.style.textAlign = 'left';
  td.style.padding = '0 0 0 10px';
  td.style.borderRight = 'solid 1px #ffffff';
  td.style.verticalAlign = 'middle';

  
  td = tr.insertCell(-1);
  td.style.width = '150px';
  td.style.height = '24px';
  td.style.textAlign = 'left';
  td.style.padding = '0 0 0 6px';
  td.style.borderRight = 'solid 1px #ffffff';
  td.style.verticalAlign = 'middle';

  
  td = tr.insertCell(-1);
  td.style.width = '200px';
  td.style.height = '24px';
  td.style.textAlign = 'left';
  td.style.verticalAlign = 'middle';
  td.style.borderRight = 'solid 1px #ffffff';
  td.style.fontSize = '9pt';
  td.style.fontWeight = 'bold';
  td.style.color = 'white';
  td.style.paddingLeft = '10px';
  td.appendChild(document.createTextNode('Tasks'));
  
  td = tr.insertCell(-1);
  td.style.width = '60px';
  td.style.height = '24px';
  td.style.textAlign = 'center';
  td.style.verticalAlign = 'middle';
  td.style.borderRight = 'solid 1px #ffffff';
  td.style.fontSize = '9pt';
  td.style.fontWeight = 'bold';
  td.style.color = 'white';
  td.style.paddingLeft = '6px';
  td.appendChild(document.createTextNode('D / W'));
  
  td = tr.insertCell(-1);
  td.style.width = '20px';
  td.style.height = '24px';
  td.style.textAlign = 'center';
  td.style.verticalAlign = 'middle';
  var checkall = DOMUtils.createInput('', '', 'checkbox', '', null);
  checkall.id  = unique + '_checkAll_checkbox';
  td.appendChild(checkall);
  
  gui = GuiTableProducesMailing.instance(unique);
  new HandleTableProducesMailing(gui, this._item, this._options);
};